package com.system.userserver.service;

import com.system.commonutils.bean.ApiResult;
import com.system.commonutils.bean.SecendMenu;
import com.system.commonutils.pojo.Menu;
import com.system.commonutils.pojo.Role;
import com.system.userserver.bean.MenuParams;
import com.system.userserver.bean.RoleInfo;
import com.system.userserver.bean.RoleMenusParams;
import com.system.userserver.bean.RoleParams;

import java.util.List;

public interface RoleService {

    List<Role> selectRoleList();

    List<SecendMenu> getMenuByRole(Integer roleId);

    RoleInfo selectRoleById(Integer roleId);

    Boolean addMenu(MenuParams menuParams);

    boolean deleteMenu(Integer menuId);

    boolean deleteRoleById(Integer roleId);

    Boolean addRole(RoleParams roleParams);

    Boolean changeMenu(Menu menu);

    Boolean changRole(Role role);

    Boolean roleDeleteMenus(RoleMenusParams role);

    Boolean roleAddMenus(RoleMenusParams role);

    Boolean addMenus(List<MenuParams> menuParams);

    List<Menu> selectMenuList();

    Boolean userChangeRole(Integer userId, Integer roleId);
}
